summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2023-11-12 08:03:55 +0100
committert895 <clombardo169@gmail.com>2023-11-21 07:58:13 +0100
commitaa2031196938c43590e5bea736edc05776c609a2 (patch)
tree6d642b339f34475ffc32fdc22dea8a0105602f69
parentconfig: Unify config handling under frontend_common (diff)
downloadyuzu-aa2031196938c43590e5bea736edc05776c609a2.tar
yuzu-aa2031196938c43590e5bea736edc05776c609a2.tar.gz
yuzu-aa2031196938c43590e5bea736edc05776c609a2.tar.bz2
yuzu-aa2031196938c43590e5bea736edc05776c609a2.tar.lz
yuzu-aa2031196938c43590e5bea736edc05776c609a2.tar.xz
yuzu-aa2031196938c43590e5bea736edc05776c609a2.tar.zst
yuzu-aa2031196938c43590e5bea736edc05776c609a2.zip
-rw-r--r--CMakeModules/Findinih.cmake27
-rw-r--r--externals/CMakeLists.txt5
-rw-r--r--externals/inih/CMakeLists.txt13
m---------externals/inih/inih0
-rw-r--r--src/android/app/src/main/jni/CMakeLists.txt2
-rw-r--r--src/yuzu_cmd/CMakeLists.txt2
6 files changed, 2 insertions, 47 deletions
diff --git a/CMakeModules/Findinih.cmake b/CMakeModules/Findinih.cmake
deleted file mode 100644
index 791befebd..000000000
--- a/CMakeModules/Findinih.cmake
+++ /dev/null
@@ -1,27 +0,0 @@
-# SPDX-FileCopyrightText: 2022 Alexandre Bouvier <contact@amb.tf>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-find_package(PkgConfig QUIET)
-pkg_search_module(INIH QUIET IMPORTED_TARGET inih)
-if (INIReader IN_LIST inih_FIND_COMPONENTS)
- pkg_search_module(INIREADER QUIET IMPORTED_TARGET INIReader)
- if (INIREADER_FOUND)
- set(inih_INIReader_FOUND TRUE)
- endif()
-endif()
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(inih
- REQUIRED_VARS INIH_LINK_LIBRARIES
- VERSION_VAR INIH_VERSION
- HANDLE_COMPONENTS
-)
-
-if (inih_FOUND AND NOT TARGET inih::inih)
- add_library(inih::inih ALIAS PkgConfig::INIH)
-endif()
-
-if (inih_FOUND AND inih_INIReader_FOUND AND NOT TARGET inih::INIReader)
- add_library(inih::INIReader ALIAS PkgConfig::INIREADER)
-endif()
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index d0d4926bb..515e3f2a4 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -34,11 +34,6 @@ endif()
# Glad
add_subdirectory(glad)
-# inih
-if (NOT TARGET inih::INIReader)
- add_subdirectory(inih)
-endif()
-
# mbedtls
add_subdirectory(mbedtls)
target_include_directories(mbedtls PUBLIC ./mbedtls/include)
diff --git a/externals/inih/CMakeLists.txt b/externals/inih/CMakeLists.txt
deleted file mode 100644
index ebb60a976..000000000
--- a/externals/inih/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-# SPDX-FileCopyrightText: 2014 Gui Andrade <admin@archshift.com>
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-add_library(inih
- inih/ini.c
- inih/ini.h
- inih/cpp/INIReader.cpp
- inih/cpp/INIReader.h
-)
-
-create_target_directory_groups(inih)
-target_include_directories(inih INTERFACE inih/cpp)
-add_library(inih::INIReader ALIAS inih)
diff --git a/externals/inih/inih b/externals/inih/inih
deleted file mode 160000
-Subproject 9cecf0643da0846e77f64d10a126d9f48b9e05e
diff --git a/src/android/app/src/main/jni/CMakeLists.txt b/src/android/app/src/main/jni/CMakeLists.txt
index 49ad029aa..2acc93da8 100644
--- a/src/android/app/src/main/jni/CMakeLists.txt
+++ b/src/android/app/src/main/jni/CMakeLists.txt
@@ -22,8 +22,8 @@ add_library(yuzu-android SHARED
set_property(TARGET yuzu-android PROPERTY IMPORTED_LOCATION ${FFmpeg_LIBRARY_DIR})
-target_link_libraries(yuzu-android PRIVATE android camera2ndk EGL glad inih jnigraphics log)
target_link_libraries(yuzu-android PRIVATE audio_core common core input_common frontend_common)
+target_link_libraries(yuzu-android PRIVATE android camera2ndk EGL glad jnigraphics log)
if (ARCHITECTURE_arm64)
target_link_libraries(yuzu-android PRIVATE adrenotools)
endif()
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt
index 281e0658e..fbeba8813 100644
--- a/src/yuzu_cmd/CMakeLists.txt
+++ b/src/yuzu_cmd/CMakeLists.txt
@@ -30,8 +30,8 @@ add_executable(yuzu-cmd
create_target_directory_groups(yuzu-cmd)
-target_link_libraries(yuzu-cmd PRIVATE inih::INIReader glad)
target_link_libraries(yuzu-cmd PRIVATE common core input_common frontend_common)
+target_link_libraries(yuzu-cmd PRIVATE glad)
if (MSVC)
target_link_libraries(yuzu-cmd PRIVATE getopt)
endif()